package com.fansl.allround.study.designpattern.factory;

/**
 * @author fansl
 * @Description: TODO
 * @date 2019/10/11 16:27
 */
public class HorseFarm implements AnimalFarm {
    @Override
    public Animal newAnimal(String name) {
        System.out.println("new horse birth.");
        Horse animal = new Horse();
        animal.setName(name);
        return animal;
    }
}
